-
Notifications
You must be signed in to change notification settings - Fork 2
[TRTLLM-5446 Part1] Add torch ref backend #74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Signed-off-by: nvchenghaoz <[email protected]>
Signed-off-by: nvchenghaoz <[email protected]>
lucaslie
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Beautiful 🐐
tests/unittest/_torch/auto_deploy/unit/singlegpu/custom_ops/test_torch_attention_op.py
Outdated
Show resolved
Hide resolved
tensorrt_llm/_torch/auto_deploy/custom_ops/torch_backend_attention.py
Outdated
Show resolved
Hide resolved
tensorrt_llm/_torch/auto_deploy/custom_ops/torch_backend_attention.py
Outdated
Show resolved
Hide resolved
tensorrt_llm/_torch/auto_deploy/custom_ops/torch_backend_attention.py
Outdated
Show resolved
Hide resolved
tensorrt_llm/_torch/auto_deploy/custom_ops/torch_backend_attention.py
Outdated
Show resolved
Hide resolved
tests/unittest/_torch/auto_deploy/unit/singlegpu/custom_ops/test_torch_attention_op.py
Show resolved
Hide resolved
tests/unittest/_torch/auto_deploy/unit/singlegpu/custom_ops/torch_attention_reference.py
Outdated
Show resolved
Hide resolved
tests/unittest/_torch/auto_deploy/unit/singlegpu/custom_ops/torch_attention_reference.py
Show resolved
Hide resolved
tests/unittest/_torch/auto_deploy/unit/singlegpu/custom_ops/torch_attention_reference.py
Show resolved
Hide resolved
Signed-off-by: nvchenghaoz <[email protected]>
Signed-off-by: nvchenghaoz <[email protected]>
Signed-off-by: nvchenghaoz <[email protected]>
Signed-off-by: nvchenghaoz <[email protected]>
Fridah-nv
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you! Torch attention backend would be super helpful for debugging.
lucaslie
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work 👏
...unittest/_torch/auto_deploy/unit/singlegpu/transformations/library/test_attention_matcher.py
Outdated
Show resolved
Hide resolved
…o/torch-backend Signed-off-by: nvchenghaoz <[email protected]>
…nsorRT-LLM into chenghao/torch-backend Signed-off-by: nvchenghaoz <[email protected]>
Signed-off-by: nvchenghaoz <[email protected]>
* Add the Torch backend and update the test to use the torch backend. Signed-off-by: nvchenghaoz <[email protected]> * Add the sinks and fix the test failures Signed-off-by: nvchenghaoz <[email protected]> * address reviewer's comments Signed-off-by: nvchenghaoz <[email protected]> * use custom op convention Signed-off-by: nvchenghaoz <[email protected]> * move the ref to the utils_test Signed-off-by: nvchenghaoz <[email protected]> * Add torch backend tests in ad_build_small_single.py Signed-off-by: nvchenghaoz <[email protected]> * Address hidden comments... Signed-off-by: nvchenghaoz <[email protected]> --------- Signed-off-by: nvchenghaoz <[email protected]> Signed-off-by: Lucas Liebenwein <[email protected]>
* Add the Torch backend and update the test to use the torch backend. Signed-off-by: nvchenghaoz <[email protected]> * Add the sinks and fix the test failures Signed-off-by: nvchenghaoz <[email protected]> * address reviewer's comments Signed-off-by: nvchenghaoz <[email protected]> * use custom op convention Signed-off-by: nvchenghaoz <[email protected]> * move the ref to the utils_test Signed-off-by: nvchenghaoz <[email protected]> * Add torch backend tests in ad_build_small_single.py Signed-off-by: nvchenghaoz <[email protected]> * Address hidden comments... Signed-off-by: nvchenghaoz <[email protected]> --------- Signed-off-by: nvchenghaoz <[email protected]> Signed-off-by: Lucas Liebenwein <[email protected]>
Description
Test Coverage
tests/unittest/_torch/auto_deploy/unit/singlegpu/*
tests/unittest/_torch/auto_deploy/unit/singlegpu/transformations/library/test_attention_matcher.py
tests/unittest/_torch/auto_deploy/unit/singlegpu/shim/test_engine.py